]> dgit.raspbian.org Git - gnome-shell.git/commit
status/network: Catch errors when fetching client
authorFlorian Müllner <fmuellner@gnome.org>
Mon, 1 Aug 2022 14:55:12 +0000 (16:55 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Sun, 7 Aug 2022 20:41:09 +0000 (22:41 +0200)
commitaf132dd8846bfc32d17be7c93118feee7803eca5
treeaaa2bb4979698eac707479e626250c1131624afb
parentd9d70c162d8de98d0ad47c259978d01046a24d01
status/network: Catch errors when fetching client

Otherwise any unrelated errors in that function are hidden,
because exceptions in async functions are turned into promise
rejections (and JS cannot know that we won't handle it at a later
point).

It wouldn't happen to me of course 😉

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2406>
js/ui/status/network.js